const http = require("http");
const fs = require("fs");

//异步I/O处理
http.createServer((req, res) => {
    res.end("test");
}).listen(3000);

fs.readFile("./demo1.html", (err, data) => {
    console.log(data.toString());
})
console.log("server is listening 3000")